package com.ewei.web.common.email.auth;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;
/**
 * 邮件认证类
 * @author David
 *
 */
public class MailAuthenticator extends Authenticator{
	
	private String account;
	
	private String password;
	
	public MailAuthenticator(String account,String password){
		this.account = account;
		this.password = password;
	}
	@Override
	public PasswordAuthentication getPasswordAuthentication() {
		return new PasswordAuthentication(account, password);
	}
	
}
